    @if ($errors->any() || Session::has('error') || Session::has('success'))
        <div class="alert hide">
            @if ($errors->any())
            <div id="sweet-alert" data-type="error">
                {!! $errors->first() !!}
            </div>
            @endif
            @if (Session::has('error'))
            <div id="sweet-alert" data-type="error">
                {!! Session::get('error') !!}
            </div>
            @endif
            @if (Session::has('success'))
            <div id="sweet-alert" data-type="success">
                {!! Session::get('success') !!}
            </div>
            @endif
        </div>
    @endif